package com.dailyblue.java.spring.boot.commons.bean;

public class ResultTool {

    public static JsonResult success(Object data) {
        return new JsonResult(true, 200, null, data);
    }

    public static JsonResult fail(Integer code,String message) {
        return new JsonResult(false, code, message, null);
    }
}
